package com.xcc.commandpattern.demo02;

/**
 * @Description: Stereo
 * @Author xiechuang
 * @Date 2022/9/8
 */
public class Stereo {

    String description;

    public Stereo(String description) {
        this.description = description;
    }

    public void on() {
        System.out.println(description + " Stereo is On");
    }

    public void setCD() {
        System.out.println(description + " Stereo is set for CD input");
    }

    public void setVolume(int i) {
        System.out.println(description + " Stereo Volume set is " + i);
    }

    public void off() {
        System.out.println(description + " Stereo is Off");
    }
}
